home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Publishing / ImagePortfolio / Source / GifImageRep.h < prev    next >
Text File  |  1994-04-01  |  1KB  |  38 lines

  1. // -------------------------------------------------------------------------------------
  2. // GifImageRep.h
  3. // -------------------------------------------------------------------------------------
  4.  
  5. #import <appkit/NXCustomImageRep.h>
  6. #import <appkit/graphics.h>
  7.  
  8. // -------------------------------------------------------------------------------------
  9.  
  10. @interface GifImageRep : NXCustomImageRep
  11. {
  12.  
  13.     FILE            *imageStream;                        // image stream
  14.     long int        imagePos;                            // image position in stream
  15.     long int        imageNextPos;                        // position of end of image
  16.     int                loadError;                            // loading error flag
  17.  
  18.     u_int            pixWide;                            // pixel width
  19.     u_int            pixHigh;                            // pixel height
  20.     u_long            rasterSize;                            // width * height
  21.     u_int            rasterTop;                            // top raster row
  22.     float            aspectRatio;                        // aspect ratio
  23.  
  24.     BOOL            isGlobalMap;                        // Is there a global color map?
  25.     int                colorMapCount;                        // Number of global colors
  26.     u_char            colorMap[256][3];                    // RGB values for global color map
  27.  
  28.     u_char            *imageRaster;                        // raster buffer
  29.   
  30. }
  31.  
  32. // -------------------------------------------------------------------------------------
  33.  
  34. + (BOOL)validImageFile:(const char*)filename;
  35. + (BOOL)validImageType:(FILE*)fd;
  36. - initFromFile:(const char*)filename;
  37.  
  38. @end